import React from "react";
import './index.scss'
import Item from "../Item";

export default class List extends React.Component {
    render() {
        const {todos} =this.props;
        return (
            <div>
                <ul>
                    {
                        todos.map((item) => {
                            return <Item key={item.id} {...item} edit={this.props.edit}/>
                        })
                    }
              </ul>
            </div>)
    }
}
